({
var k,freq,amp,mul,out,ring;
freq=[800, 1071, 1353, 1723] * 0.3 * SinOsc.kr(freq:[1.71,1.37,0.93,3.41],add:2,mul:0.3);
//amp=[0.5, 0.2, 0.1, 0.1];
amp=[1,0.5,0.25,0.25] * SinOsc.kr(freq:[3.71,7.79,0.93,3.41],add:2,mul:0.3);
//amp=[SinOsc.ar(freq=[0.5,0.2,0.8,1.3],mul=[0.5, 0.2, 0.1, 0.1])];
ring=[1,0.5,0.25,1.125] * SinOsc.kr(freq:[5.71,1.37,1.93,8.41],add:2,mul:0.9);
//k=Impulse.ar(0.5) * 0.3;
//k=Impulse.ar(1,0.1);
//k=0.2 + (SinOsc.ar(0.1) * SinOsc.ar(120) * Pulse.ar(0.2) * 0.1);
//k=Dust.ar(density:4,mul:0.3);
//k=Blip.ar(freq:10, numharm:1, mul:0.1, add:0);
out=DynKlank.ar(`[freq,amp,ring],k);
out=FreeVerb.ar(in:out, mix:0.75, room:0.5, damp:0.1);
//out=Pan2.ar(out, pos:SinOsc.kr(freq:0.17));
//[out[0], DelayC.ar(out[1], maxdelaytime:0.5, delaytime:0.59)]; // de-correlate
//[out,out];
}.scope;//(1,zoom:10)
)

({
loop({
play({
Pan2.ar(Klang.ar(`[ Array.rand(12, 200.0, 2000.0), Array.rand(12, 0, pi), Array.rand(12, 0, 1.0)], 1, 0), 1.0.rand) 
* EnvGen.kr(Env.sine(3), 4, 0.02, doneAction: 2);
});
3.wait;
})
}.fork;)

Array.rand(12, 200.0, 2000.0).postln;

(
play({
z = Blip.ar(800, 6, 0.1);
PitchShift.ar(z, 0.02, Line.kr(0.1,4,20), 0, 0.0001)
}))

({
// play with the room size
var x,k;
k = Dust.ar(2, 0.1);
//k = SinOsc.ar(30, 0.1) * XLine.ar(0, 1, 1);
x = Klank.ar(`[[200, 671, 1153, 1723], nil, [0.31, 0.17, 0.11, 0.09]], k);
//x = Klank.ar(`[[200, 671, 1153, 1723], nil, [1, 1, 1, 1]], x);
//x = Pan2.ar(x, -0.2);
//x = [x[0], DelayC.ar(x[1], 0.01, 0.01)]; // de-correlate
//x = FreeVerb.ar(in:x, mix:0.75, room:1.0, damp:0.4);
[x,x];
}.scope;
)      

 
// sound example
(
SynthDef(\help_sinegrain, 
{ arg out=0, freq=440, sustain=0.05;
var env;
env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction:2);
Out.ar(out, SinOsc.ar(freq, 0, env))
}).send(s);
)

{ Pan2.ar(BrownNoise.ar(0.3),0.5) }.play;     